﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SkillifyMaster.master" AutoEventWireup="true" CodeFile="TaskTypeMasterAdmin.aspx.cs" Inherits="TaskTypeMasterAdmin" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style1
        {
            font-size: medium;
        }
        
    </style>

<script type="text/javascript" language="javascript">
    function Checked(value) {

        if (value.id == '<%= rbtnYes.ClientID %>') {
            // document.getElementById("ddlFollowUp").enabled = true;
            document.getElementById('<%= ddlFollowUp.ClientID %>').disabled = false;
        }
        else if (value.id == '<%= rbtnNo.ClientID %>') {
            //document.getElementById("ddlFollowUp").enabled = false;
            document.getElementById('<%= ddlFollowUp.ClientID %>').disabled = true;
        }

    }
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

 
    <table width=100%>
     <tr>
    <td colspan="3" class="style1" align="right">
        <h2>Task Type Master-Admin
    </h2>
    </td>
    </tr>
    <tr>
    <td>
    

    <table align="center" cellspacing="2" style="border: 4px outset orange;" width=100%>
   
    
<%--    
       <tr>
    <td colspan="3" align="center">
    <br />
    </td>
    </tr>--%>

    <tr>
    <td align="center" colspan="3">
    <b>Add/Edit Task Information</b>
    </td>
    </tr>

    <tr>
    <td align="right">Task Name </td>
    <td colspan="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="txtTaskName" runat="server" Width="200px" 
            ontextchanged="txtTaskName_TextChanged" Height="17px"></asp:TextBox>
     </td>
    
    </tr>
    
    <tr>
    <td colspan="3" align="center">
    <br />
    </td>
    </tr>
    

    <tr>
    <td align="right">Follow Up   </td>
       <td align="left" colspan="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
       <asp:RadioButton ID="rbtnYes" runat="server" GroupName="value" 
               ForeColor="White" onclick="Checked(this)" 
                /> <b>Yes &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:RadioButton ID="rbtnNo" runat="server" GroupName="value" 
            ForeColor="White"  onclick="Checked(this)" 
              />No</b></td>
    </tr>
    
       <tr>
    <td colspan="3" align="center">
    <br />
    </td>
    </tr>

    <tr>
    <td align="right">Follow Up Type </td>
    <td colspan="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:DropDownList ID="ddlFollowUp" runat="server" Width="200px" 
            onselectedindexchanged="ddlFollowUp_SelectedIndexChanged" Height="24px">
            <asp:ListItem Value="0">--Select--</asp:ListItem>
            <asp:ListItem Value="1">Complete</asp:ListItem>
            <asp:ListItem Value="2">Submission </asp:ListItem>
        </asp:DropDownList> </td>
  
    </tr>
   
      <tr>
    <td colspan="3" align="center">
    <br />
    </td>
    </tr>


    <tr>
    
    <td colspan="3" align="center">

        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

        <asp:Button ID="btn_Submit" runat="server" Text="Submit" 
            onclick="btn_Submit_Click" BackColor="#E49642" BorderColor="#CC7A24" 
            ForeColor="White" Width="65px" />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="btn_Clear" runat="server" Text="Clear" 
            onclick="btn_Clear_Click" BackColor="#E49642" BorderColor="#CC7A24" 
            ForeColor="White" Width="65px"  />

    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

        <%--<asp:Button ID="btn_Update" runat="server" Text="Update" 
             BackColor="#E49642" BorderColor="#CC7A24" 
            ForeColor="White" Width="65px" onclick="btn_Update_Click" />--%>

    </td>
       
    </tr>
       

    </table>


   
    </td>

    <td>
        &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;</td><td align="center" valign="top">
       <b>Available Tasks</b>

        <br />
   <%--   <asp:GridView ID="gvAvailable" runat="server">--%>

        <asp:GridView ID="gvAvailable" runat="server" AutoGenerateColumns="False"  AllowPaging="True" 
            DataKeyNames="TaskTypeId" 
            BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" 
            CellPadding="2" ForeColor="Black" GridLines="None"  AutoPostBack="True"
            onselectedindexchanged="gvAvailable_SelectedIndexChanged"
            Width="585px">  <%--onsorted="gvSubject_Sorted"--%>

         <AlternatingRowStyle BackColor="PaleGoldenrod" />
        <Columns>

     <asp:ButtonField ButtonType="Link" DataTextField="TaskName" HeaderText="TaskName"  SortExpression="TaskName" CommandName="Select" />                            <asp:BoundField DataField="FollowUp" HeaderText="FollowUp" SortExpression="FollowUp" />
                          <asp:BoundField DataField="FollowUpType" HeaderText="FollowUpType" SortExpression="FollowUpType" />
                       
                      
                      
             


       <%--    <asp:ButtonField ButtonType="Link" DataTextField="TaskTypeId" CommandName="Select" HeaderText="TaskTypeId"
                    InsertVisible="False"  SortExpression="TaskTypeId" />--%>
        </Columns>
            <EditRowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            <EmptyDataRowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
         <FooterStyle BackColor="Tan" />
            <HeaderStyle BackColor="#CB6811" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" 
                HorizontalAlign="Center" />
            <RowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            <SelectedRowStyle BackColor="#E49642" ForeColor="GhostWhite" />
            <SortedAscendingCellStyle BackColor="#FAFAE7" />
            <SortedAscendingHeaderStyle BackColor="#DAC09E" />
            <SortedDescendingCellStyle BackColor="#E1DB9C" />
            <SortedDescendingHeaderStyle BackColor="#C2A47B" />
        </asp:GridView>
        


    
    
  
    </td>
    
    </tr>
    </table>
</asp:Content>

